package com.example.jvm.LearnJVM;

import javax.crypto.Mac;
import javax.crypto.interfaces.DHKey;
import javax.crypto.spec.ChaCha20ParameterSpec;
import javax.crypto.spec.DHParameterSpec;
import java.util.ArrayList;
import java.util.List;

public class ClassLoaderDemo {

    public static void main(String[] args) {

        Object o1 = new Object();
        System.out.println(o1.getClass().getClassLoader());
        List<String> list = new ArrayList<>();
        System.out.println(list.getClass().getClassLoader());

        Person person = new Person();
        System.out.println(person.getClass().getClassLoader());
        System.out.println(person.getClass().getClassLoader().getParent());
        System.out.println(person.getClass().getClassLoader().getParent().getParent());

    }

}

class Person {

}
